home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disc 44
/
Commodore_Disc_44_19xx_-_de.d64
/
funktionen c64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
1KB
|
51 lines
10 rem funktionen =============c64
20 rem (p) commodore disc
30 rem ===========================
40 rem (c) by michael grobe v3.5
50 rem
60 rem (v) a. mittelmeyer v2.0
70 rem
80 rem c64
90 rem ==========================
91 sys57812"supergraphics.mc",8,0:poke780,0
92 poke782,191:poke781,254:sys65493
100 printchr$(147);:goto419
110 printchr$(147):print:print
120 printtab(8)"funktionsgraphen c64"
130 printtab(8)"--------------------"
140 print:print:print
150 printtab(9)"von michael grobe "
160 print"----------------------------------------":print
170 print"genauigkeit"spc(29)"(0.1 oder 0.01 oder 0.001):";:inputk
180 ifk<>0.1andk<>0.01andk<>0.001then170
190 print"start x"spc(2)"(-16 bis 16)"spc(5)":";:inputxs:ifxs<-16orxs>16then190
200 print"ziel"spc(2)"x"spc(2)"(-16 bis 16)"spc(5)":";:inputzz:ifzz<-16orzz>16then200
210 ifzz<xsthenprint"ziel x muss groesser sein als start x !":goto200
220 print"loeschen (0=n 1=j)"spc(8)":";:inputl:ifl<>1andl<>0thengoto220
230 x=xs:y=0:ifl=1thensys50941
240 sys50906,1,0:sys51090
250 sys49415,0,100,319,100
260 sys49415,160,0,160,199
270 fori=1to20
280 sys49415,159,200-10*i,161,200-10*i:next
290 fori=0to31
300 sys49415,10*i,99,10*i,101:next
310 ifx>zzthen410
320 rem =========================
330 y=5*sin(x/5)
340 rem =========================
350 a=160+(x*10)
360 b=100-(y*10)
370 ifb<0orb>255then390
380 sys49264,a,b
390 x=x+k
400 goto310
410 sys50088,1,1,"ok":gosub421:sys50088,1,1," ":sys51115
419 printchr$(147):print:print"run110":poke198,2:poke631,19
420 poke632,17:printchr$(19);:list330:end
421 getm$:ifm$=""then421
422 return
430 rem =========================
440 rem p r o g r a m m e n d e
450 rem =========================